<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.ncp.model.biz.video.*" %>
<%@ page import="com.ncp.model.entity.video.*" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<%
ArrayList<VideoBean> al=new VideoManager().getAllVideos();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>农庄风采</title>
<link rel="stylesheet" href="css/common_js.css" type="text/css"></link>

<link rel="stylesheet" href="css/index_js.css" type="text/css"/>
<link rel="stylesheet" href="css/common.css" type="text/css"/>
<link rel="stylesheet" href="css/cein_list.css" type="text/css"/>

<script type="text/javascript" src="js/jquery-1.4.2.js"></script>
<script type="text/javascript" src="js/slider.js"></script>
</head>

<body>
	<div id="allpage">
		<jsp:include flush="true" page="../index/head.jsp"></jsp:include>
		
		<div id="page">
			<div id="sidebar" class="left">
				<div class="content_right">
				  <div class="ad" >
					<ul class="slider" >
					  <li><a href="#"><img src="images/buttom_0.jpg"/></a></li>
					  <li><a href="#"><img src="images/buttom_1.jpg"/></a></li>
					  <li><a href="#"><img src="images/buttom_2.jpg"/></a></li>
					  <li><a href="3"><img src="images/buttom_3.jpg"/></a></li>
					</ul>
					<ul class="num" >
					  <li>1</li>
					  <li>2</li>
					  <li>3</li>
					  <li>4</li>
					</ul>
				  </div>
				</div>
				
				<div id="maincon">
					<div class="title">
					农场介绍
					</div>
				 	<p style="text-align:left;">
					农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍农场介绍
					<a href="#"><span class="more right">更多>></span></a>
					</p>
				</div>
			</div>	
			
			<div id="content" class="right">
				<div id="main" style="width:500px;">
					<p style="font-weight:bold; font-size:28px; line-height:30px; text-align:center;">视频展示</p>
					<p style=" border-bottom:1px solid #DDD;"></p>
					<%
					for(int i=0;i<al.size();i++){
						VideoBean vb=al.get(i);
						%>
						<div class="line">
					
						<style>
						.line div a img{ width:200px; height:160px;}
						</style>
							<div style="width:200px; height:160px; overflow:hidden; float:left;">
								<a href="pages/agraculturWorld/Video.jsp?id=<%=vb.getId() %>">
								<img src="video/<%=vb.getPicture() %>" width="200" height="160"/></a>
							</div>
							<p style=" margin-left:20px; float:left; width:240px; text-indent:2em; line-height:26px; padding:20px 0;">
							<%=vb.getDescr() %>
							</p>					
							<p style="padding:20px 0;width:400px; margin:0 auto; line-height:30px;"><span class="right">浏览次数：<%=vb.getViews() %>次</span><span class="left">作者：<%=vb.getWriter() %>&emsp;日期<%=vb.getpDate() %></span><div style="clear:both"></div></p>
						
							<div style="clear:both"></div>
						</div>
						<%
					}
					%>
					
				</div>
			</div>
			
			
		</div>	
		
	<div style="clear:both"></div>
	<div id="slice">
	</div>
	
	<p id="footer">地址：山东省淄博市张店区创业园&emsp;&emsp;电话：0533-545645634/0533-64533232&emsp;&emsp;传真：0533-545645634</p>
	
	</div>
	
	</div>
</body>
</html>
